package com.hqyj.emb.system.service.Impl;

import com.hqyj.emb.system.dao.Impl.UserRoleDaoImpl;
import com.hqyj.emb.system.dao.UserRoleDao;
import com.hqyj.emb.system.model.Role;
import com.hqyj.emb.system.model.User;
import com.hqyj.emb.system.model.UserRole;
import com.hqyj.emb.system.service.UserRoleService;

import java.util.List;

public class UserRoleServiceImpl implements UserRoleService {
    UserRoleDao userRoleDao=new UserRoleDaoImpl();
    @Override
    public int addUserRoleByUserId(UserRole userRole) {
        return userRoleDao.addUserRoleByUserId(userRole);
    }

    @Override
    public int deleteRoleByUserId(int userId) {
        return userRoleDao.deleteRoleByUserId(userId);
    }


}
